namespace Gluten.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class InitialCreate : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "Logoes",
                c => new
                    {
                        Name = c.String(nullable: false, maxLength: 4000),
                        BigText = c.String(maxLength: 4000),
                        LinkText = c.String(maxLength: 4000),
                        LinkUrl = c.String(maxLength: 4000),
                        Image = c.String(maxLength: 4000),
                    })
                .PrimaryKey(t => t.Name);
            
            CreateTable(
                "Menus",
                c => new
                    {
                        Id = c.Guid(nullable: false),
                        Parent = c.Guid(nullable: false),
                        Name = c.String(nullable: false, maxLength: 4000),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "Pages",
                c => new
                    {
                        Id = c.Guid(nullable: false),
                        MenuParent = c.Guid(nullable: false),
                        Title = c.String(maxLength: 4000),
                        Meta = c.String(maxLength: 4000),
                        Description = c.String(maxLength: 4000),
                        Text = c.String(maxLength: 4000),
                        Publication = c.Boolean(nullable: false),
                        AddTime = c.DateTime(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("Pages");
            DropTable("Menus");
            DropTable("Logoes");
        }
    }
}
